<?php

namespace App\HttpController\Api;

use App\Component\User;
use App\HttpController\Api\BaseController;
use App\Logic\Account\RechargeService;

/**
 * Recharge 充值
 */
class Recharge extends BaseController {
    /**列表*/
    public function index()
    {
        $service = new RechargeService();
        $result = $service->getLists($this->request());
        return $this->writeJsonByOutput($result);
    }
    /**字典*/
    public function dict()
    {
        $service = new RechargeService();
        $result = $service->getDict($this->request());
        return $this->writeJsonByOutput($result);
    }
    /**提交充值*/
    public function create()
    {
        $service = new RechargeService();
        $data = $this->getJson();
        $result = $service->memberCreate($data);
        return $this->writeJsonByOutput($result);
    }

}
